﻿namespace ConsoleApp2;

class Program
{
    static void Main(string[] args)
    {
        int i, j,count=0;
        for(i = 101; i <= 200; i++)
        {
            bool b = true;
            for(j=2;j<=(int)Math.Sqrt(i); j++)
            {
                if(i%j == 0)
                {
                    b = false;
                    break;
                }
            }
            if (b)
            {
                Console.Write(i + " ");
                count++;
            }
        }
        Console.WriteLine($"\n共有{count}个素数");
    }
}
